package com.yx.robot.bean.robot;

import android.util.Log;

public class Consumption implements Clear {
    /**
     * "mainBrush"	        主刷使用时间 int
     * "mainBrushLife"		主刷寿命
     * "sideBrush"			边刷使用时间
     * "sideBrushLife"		边刷寿命
     * "strainer"			滤网使用时间
     * "strainerLife"		滤网寿命
     * "sensor"			    传感器使用时间
     * "sensorLife"			传感器寿命
     * "mop"			   拖布使用时间
     * "mopLife"			拖布寿命
     * "waterTankFilter"    水箱滤网
     */
    private float mainBrush;
    private int mainBrushLife;
    private float sideBrush;
    private int sideBrushLife;
    private float strainer;
    private int strainerLife;
    private float sensor;
    private float sensorLife;
    private float mop;
    private int mopLife;
    private int waterTankFilter;
    private int waterTankFilterLife;

    public void setStrainer(float strainer) {
        this.strainer = strainer;
    }

    public int getWaterTankFilterLife() {
        return waterTankFilterLife;
    }

    public void setWaterTankFilterLife(int waterTankFilterLife) {
        this.waterTankFilterLife = waterTankFilterLife;
    }

    public int getWaterTankFilter() {
        return waterTankFilter;
    }

    public void setWaterTankFilter(int waterTankFilter) {
        this.waterTankFilter = waterTankFilter;
    }

    public float getMop() {
        return mop;
    }

    public void setMop(float mop) {
        this.mop = mop;
    }

    public int getMopLife() {
        return mopLife;
    }

    public void setMopLife(int mopLife) {
        this.mopLife = mopLife;
        Log.d("disturb", "mopLife is " + mopLife);
    }

    public float getMainBrush() {
        return mainBrush;
    }

    public void setMainBrush(float mainBrush) {
        this.mainBrush = mainBrush;
    }

    public int getMainBrushLife() {
        return mainBrushLife;
    }

    public void setMainBrushLife(int mainBrushLife) {
        this.mainBrushLife = mainBrushLife;
    }

    public float getSideBrush() {
        return sideBrush;
    }

    public void setSideBrush(float sideBrush) {
        this.sideBrush = sideBrush;
    }

    public int getSideBrushLife() {
        return sideBrushLife;
    }

    public void setSideBrushLife(int sideBrushLife) {
        this.sideBrushLife = sideBrushLife;
    }

    public float getStrainer() {
        return strainer;
    }

    public void setStrainer(int strainer) {
        this.strainer = strainer;
    }

    public int getStrainerLife() {
        return strainerLife;
    }

    public void setStrainerLife(int strainerLife) {
        this.strainerLife = strainerLife;
    }

    public float getSensor() {
        return sensor;
    }

    public void setSensor(float sensor) {
        this.sensor = sensor;
    }

    public float getSensorLife() {
        return sensorLife;
    }

    public void setSensorLife(float sensorLife) {
        this.sensorLife = sensorLife;
    }

    @Override
    public void clear() {
        mainBrush = 0;
        mainBrushLife = 0;
        sideBrush = 0;
        sideBrushLife = 0;
        strainer = 0;
        strainerLife = 0;
        sensor = 0;
        sensorLife = 0;
        mop=0;
        mopLife=0;
        waterTankFilter=0;
        waterTankFilterLife=0;
    }

    @Override
    public String toString() {
        return "Consumption{" +
                "mainBrush=" + mainBrush +
                ", mainBrushLife=" + mainBrushLife +
                ", sideBrush=" + sideBrush +
                ", sideBrushLife=" + sideBrushLife +
                ", strainer=" + strainer +
                ", strainerLife=" + strainerLife +
                ", sensor=" + sensor +
                ", sensorLife=" + sensorLife +
                ", mop=" + mop +
                ", mopLife=" + mopLife +
                ", waterTankFilter=" + waterTankFilter +
                ", waterTankFilterLife=" + waterTankFilterLife +
                '}';
    }
}
